﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Projekt
{
    class Unit
    {
        Dalgen conn = Dalgen.Instance;

        /// <summary>
        /// Mertekegysegek lekerese
        /// </summary>
        /// <returns>Mertekegysegek listaja(datatable)</returns>
     
        public DataTable getUnitList()
        {
            try
            {
                String sqlQuery = "select * From mertekegyseg";
                return conn.QueryCmd(sqlQuery);
            }
            catch (Exception e) { throw e; }
        }
    }
}
